<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>${pageTitle }</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">   
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>css/easyui.css" />
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>js/themes/icon.css" />
		<link type="text/css" href="<%=basePath %>css/forms.css" />
			
    <script type="text/javascript" src="<%=basePath %>js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="<%=basePath %>js/Validform_v5.3.2_ncr_min.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/easyui-lang-zh_CN.js"></script>
<!--media=print 这个属性可以在打印时有效-->   

</head>   
 
<body >   
			<table cellpadding="0" cellspacing="0" border="0">
				<tr>
					<th>
						<span>用户名:</span>
					</th>
					<td>
						<input type="text" id="uname" value="${defaultUserName}"/>
					</td>
				</tr>
				<tr>
					<th>
						<span>密&nbsp;&nbsp;码:</span>
					</th>
					<td>
						<input type="password" id="psd" value="${defaultPassword}"/>
						<br/>
						初始默认密码为:${defaultPassword},也可以在上方密码框中手动输入密码.
					</td>
				</tr>
				
				
			</table>


</body>   
	<script type="text/javascript">
	var rtn=false;
	var basePath='<%=path %>';
	var servDataRtn=false;
	$(document).ready(function(){
		rtn=false;
		
	});
		function submit(){
			$.ajax({
				 type: "POST",
				 url: basePath+"/Manage/Tenant/doInitUser.do",
				 data: {"id":"${tenantId}","userName":$("#uname").val(),"password":$("#psd").val()},
				 dataType: "text",
				 async:false,
				 success: function(result){
					if(result.indexOf("msg")!=0){
						var t=eval("("+result+")");
						if(t.status='99'){
							rtn=true;
						}else{
							alert(t.msg);
						}
					}
				}
			 });
			return rtn;
		};
 				
     </script>

</html>  